import { http } from '@/utils/http/axios';

const prefix = '/admin/hosp/hospital';
/**
 * @description 分页获取医院信息
 */
export function getHospitalPageList(params) {
  return http.request({
    url: `${prefix}/query`,
    method: 'GET',
    params
  })
}

/**
 * @description 获取医院详细信息
 */
export function getHospitalDetail(id) {
  return http.request({
    url: `${prefix}/detail/${id}`,
    method: 'GET'
  })
}

/**
 * @description 更新医院状态
 */
export function updateHospStatus(id, status) {
  return http.request({
    url: `${prefix}/updateStatus/${id}/${status}`,
    method: 'PUT'
  })
}
